<?php


namespace dsp\singleton;


final class Singleton
{
    /** @var Singleton */
    private static $instance = null;

    public static function getInstance(): Singleton
    {
        if (static::$instance === null) {
            static::$instance = new Singleton();
        }
        return static::$instance;
    }

    private function __construct()
    {
    }

    private function __clone()
    {
    }

    private function __wakeup()
    {
    }

}